package itheima.d03;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {

        try (     FileReader fr =new FileReader("C:\\Users\\胡文冰\\Desktop\\kun.txt");
                  FileWriter fw = new FileWriter("day11\\src\\itheima\\d03\\aikun.txt");){

            int ch;
            while ((ch = fr.read())!=-1){
//                System.out.print((char)ch);
                fw.write((char)ch+'0');
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
